<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>16宫格</title>
    <style>
        .container {
            width: 800px;
            height: 800px;
            margin: 0 auto;
        }

        .item {
            height: 25%;
            width: 100%;
            box-sizing: border-box;
            /* background-color: blue; */
            border-left: 2px solid black;
            border-right: 2px solid black;
            border-top: 2px solid black;
        }

        .item:nth-of-type(4) {
            border-bottom: 2px solid black;
        }

        .item-small {
            /* 元素之间会有换行符 */
            display: inline-block;
            width: 25%;
            height: 100%;
            box-sizing: border-box;
            border-right: 2px solid black;
        }

        .item-small:nth-of-type(4) {
            border-right: none;
        }

        .circle {
            width: 50%;
            height: 100%;
            border-radius: 50%;
            border: 2px solid black;
            margin: 0 auto;
        }

        .item-small-1 {
            width: 50%;
            height: 100%;
            border-right: 2px solid black;
            box-sizing: border-box;
            display: inline-block;
            background-color: #FFEBD8;
        }

        .item-small-1:nth-of-type(2) {
            border-right: none;
        }

        .top {
            width: 100%;
            height: 50%;
            border-bottom: 2px solid black;
            background-color: #DD7E81;
        }

        /* 颜色 */

        .color1 {
            background-color: #FFEBD8;
        }

        .color2 {
            background-color: #DD7E81;
        }

        .color3 {
            background-color: #246B69;
        }
    </style>
</head>

<body>
    <div class="container">
        <!-- 第一行 -->
        <div class="item">
            <div class="item-small color1"></div>
            <div class="item-small color2">
                <div class="circle color3"></div>
            </div>
            <div class="item-small color3">
                <div class="item-small-1">
                    <div class="top"></div>
                </div>
            </div>
            <div class="item-small"></div>
        </div>
        <!-- 第二行 -->
        <div class="item">
            <div class="item-small"></div>
            <div class="item-small"></div>
            <div class="item-small"></div>
            <div class="item-small"></div>
        </div>
        <!-- 第三行 -->
        <div class="item"></div>
        <!-- 第四行 -->
        <div class="item"></div>
    </div>
</body>

</html>